var _n60;
var cc__extends = __extends;
var cc__importDefault = __importDefault;
Object.defineProperty(exports, "__esModule", {
  value: true
});
var $1$FMJava = require("FMJava");
var a = cc__importDefault($1$FMJava);
var $zqcc_OverallSystem = require("zqcc_OverallSystem");
var $1$miniGameApiBase = require("miniGameApiBase");
var def_h5Api = function (t) {
  function _ctor() {
    var e = null !== t && t.apply(this, arguments) || this;
    e.m_BannerAdIdIndex = 0;
    return e;
  }
  cc__extends(_ctor, t);
  _ctor.prototype.validAppId = function () {
    console.log("h5-api-validAppId");
    console.log("isNative" + cc.sys.isNative);
  };
  _ctor.prototype.ready = function () {
    console.log("h5-api-ready");
  };
  _ctor.prototype.getUserInfo = function () {
    console.log("h5-api-getUserInfo");
  };
  _ctor.prototype.showToast = function () {
    console.log("h5-api-showToast");
  };
  _ctor.prototype.showLoading = function () {
    console.log("h5-api-showLoading");
  };
  _ctor.prototype.hideLoading = function () {
    console.log("h5-api-hideLoading");
  };
  _ctor.prototype.showModal = function () {
    console.log("h5-api-showModal");
  };
  _ctor.prototype.authorize = function () {
    console.log("h5-api-authorize");
  };
  _ctor.prototype.login = function () {
    console.log("h5-api-login");
  };
  _ctor.prototype.loadAndShowVideoAd = function (t, e, o, n) {
    if (cc.sys.platform == cc.sys.ANDROID) {
      console.log("android-sdk-loadAndShowVideoAd");
      this.showRewardedVideoAd(function (o) {
        if (o) {
          console.log("播放激励视频完成");
          setTimeout(function () {
            t();
          }, 60);
        } else {
          console.log("播放激励视频失败");
          e("视频中途退出");
        }
      }, function () {
        console.log("播放激励视频失败");
        o && o();
      });
    } else {
      console.log("h5-api-loadAndShowVideoAd");
      cc.log(n);
      setTimeout(function () {
        t();
      }, 60);
      o && o();
    }
  };
  _ctor.prototype.showRewardedVideoAd = function (t, e) {
    console.log("播放激励视频");
    a.default.showRewardedVideoAd(t, e);
  };
  _ctor.prototype.FullScreenVideoAd = function (t, e, o) {
    cc.sys.platform == cc.sys.ANDROID && a.default.show_FullScreenVideo(function (o) {
      if (o) {
        console.log("播放激励视频完成");
        t();
      } else {
        console.log("播放激励视频失败");
        e("视频中途退出");
      }
    }, function () {
      console.log("播放激励视频失败");
      o && o();
    });
  };
  _ctor.prototype.showInsertAd = function (t) {
    console.log("h5-api-showInsertAd");
    t();
  };
  _ctor.prototype.showBannerAD = function () {
    console.log("h5-api-showBannerAD");
  };
  _ctor.prototype.hideBanner = function () {
    console.log("h5-api-hideBanner");
  };
  _ctor.prototype.recordedGameScreenStart = function (t, e) {
    console.log("h5-api-recordedGameScreenStart");
    e && e(null);
  };
  _ctor.prototype.recordedGameScreenStop = function () {
    console.log("h5-api-recordedGameScreenStop");
    return true;
  };
  _ctor.prototype.shareRecordedGameScreen = function (t) {
    console.log("h5-api-shareRecordedGameScreen");
    t && t();
  };
  _ctor.prototype.isHaveRecordedGameScreen = function () {
    return true;
  };
  _ctor.prototype.reportAnalytics = function (t, e) {
    console.log("埋点");
    console.log(t);
    console.log(e);
  };
  _ctor.prototype.vibrateShort = function (t) {
    undefined === t && (t = "heavy");
    $zqcc_OverallSystem.mgrs().soundMgr.isVibration;
  };
  _ctor.prototype.shareAppMessage = function () {};
  return _ctor;
}($1$miniGameApiBase.MiniGameApiBase);
exports.default = def_h5Api;